package com.itmate.wei.service;


import java.util.List;


import com.itmate.wei.dao.StatuesDao;
import com.itmate.wei.entity.Family;
import com.itmate.wei.entity.Member;
import com.itmate.wei.entity.Statues;

public class StatuesService {
	private StatuesDao statuesDao = new StatuesDao();
//	public List<Statues> SelectStaByfamily_id(String family_id){
//		return statuesDao.SelectStaByfamily_id(family_id);
//		
//	}
//	public List<Statues> SelectStaByFamily(String Family){
//		return statuesDao.SelectStaByFamily(Family);
//		
//	}
	public List<Statues> SelectStaBydate(String date){
		return statuesDao.SelectStaBydate(date);
		
	}
	public int addStatues(Statues sta){
		return statuesDao.addStatues(sta);
	}
    public int UpdataStatues(Statues sta){		
		return statuesDao.UpdataStatues(sta);
		
	}
	public boolean DeleteByID(int id){
		boolean flag=false;
		int i = statuesDao.DeleteByID(id);
		if(i>0){
			flag=true;
		}
		return flag;
	}
	public List<Statues> SelectAllUser(){
		return statuesDao.SelectAllUser();
	}
	public List<Family> SelectAllFamily(){
		return statuesDao.SelectAllFamily();
	}
	public List<Member> SelectAllMember(){
		return statuesDao.SelectAllMember();
	}

}
